package com.xs.store.good.client;

import com.xs.store.good.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(name="user", fallback = UserHystrix.class)
public interface UserClient {

    @GetMapping("/user/list")
    List<User> list();
}
